from PIL import Image
import pytesseract

image = Image.open('hello.png')
content = pytesseract.image_to_string(image,lang='chi_sim')   # 解析图片
print(content)